This doesn't really make sense, we can assume that the treeview already
has the focus when it receives key events.
GtkTreeRBTree *new_cursor_tree = NULL;
GtkTreeRBNode *new_cursor_node = NULL;
GtkTreePath *cursor_path = NULL;
- gboolean grab_focus = TRUE;
gboolean selectable;
GtkDirectionType direction;
GtkCellArea *cell_area = NULL;
GtkCellRenderer *last_focus_cell = NULL;
GtkTreeIter iter;
- if (! gtk_widget_has_focus (GTK_WIDGET (tree_view)))
- return;
-
if (tree_view->priv->cursor_node == NULL)
return;
count < 0 ?
GTK_DIR_TAB_BACKWARD :
GTK_DIR_TAB_FORWARD);
-
- grab_focus = FALSE;
}
}
else
if (cell_area)
gtk_cell_area_set_focus_cell (cell_area, last_focus_cell);
}
-
- if (grab_focus)
- gtk_widget_grab_focus (GTK_WIDGET (tree_view));
}
static void